package com.doucat.support.component.permission;

import androidx.fragment.app.Fragment;

/**
 * -----------------------------------------------------------------
 * Copyright (C) 2021-2031, by tonly, All rights reserved.
 * -----------------------------------------------------------------
 * File: FragmentPermission.java
 * Author: wangfy
 * Create: 2021/7/28 8:54
 */
public class FragmentPermission extends BasePermission{
    private Fragment fragment;

    public FragmentPermission(Fragment fragment) {
        this.fragment = fragment;
    }

    @Override
    public void requestPermissions(String[] permissions) {
        fragment.requestPermissions(permissions, REQUEST_CODE_PERMISSION);
    }
}